package mysql

import "gorm.io/gorm"

type Cart struct {
	gorm.Model
	UserId   int     `gorm:"type:tinyint;not null;comment:用户ID"`
	CourseId int     `gorm:"type:tinyint;not null;comment:课程ID"`
	Status   int     `gorm:"type:int(1);default:1;comment:1-选择 2-未选中"`
	Name     string  `gorm:"type:varchar(20);not null;comment:课程名称"`
	Price    float64 `gorm:"type:decimal(10,2);not null;comment:课程价格"`
}
